module DatesHelper
    @@days_of_week_pl = { "poniedzialek" => "Monday", 
                          "wtorek" => "Tuesday", 
                          "sroda" => "Wednesday", 
                          "czwartek" => "Thursday", 
                          "piatek" => "Friday", 
                          "sobota" => "Saturday", 
                          "niedziela" => "Sunday" }
                          
    @@months_pl = { "styczen" => "January",
                    "luty" => "February",
                    "marzec" => "March",
                    "kwiecien" => "April",
                    "maj" => "May",
                    "czerwiec" => "June",
                    "lipiec" => "July",
                    "sierpien" => "August",
                    "wrzesien" => "September",
                    "pazdziernik" => "October",
                    "listopad" => "November",
                    "grudzien" => "December" }

    @@months_pl_odm = { "stycznia" => "January",
                        "lutego" => "February",
                        "marca" => "March",
                        "kwietnia" => "April",
                        "maja" => "May",
                        "czerwca" => "June",
                        "lipca" => "July",
                        "sierpnia" => "August",
                        "wrzesnia" => "September",
                        "pazdziernika" => "October",
                        "listopada" => "November",
                        "grudnia" => "December" }
                        
    @@months_pl_odm_short = { "sty" => "January",
                        "lut" => "February",
                        "mar" => "March",
                        "kwi" => "April",
                        "maj" => "May",
                        "cze" => "June",
                        "lip" => "July",
                        "sie" => "August",
                        "wrz" => "September",
                        "paz" => "October",
                        "lis" => "November",
                        "gru" => "December" }        

      @@months_pl_odm_short2 = { "st" => "January",
                        "lu" => "February",
                        "ma" => "March",
                        "kw" => "April",
                        "ma" => "May",
                        "cz" => "June",
                        "li" => "July",
                        "si" => "August",
                        "wr" => "September",
                        "pa" => "October",
                        "li" => "November",
                        "gr" => "December" }  

    @@months_roman = { "I" => "January",
                        "II" => "February",
                        "III" => "March",
                        "IV" => "April",
                        "V" => "May",
                        "VI" => "June",
                        "VII" => "July",
                        "VIII" => "August",
                        "IX" => "September",
                        "X" => "October",
                        "XI" => "November",
                        "XII" => "December" }
                        
    def self.get_en_week_name pl_name
        @@days_of_week_pl[pl_name]
    end
    
    def self.get_en_month_name pl_name
        @@months_pl[pl_name] || @@months_pl_odm[pl_name] || @@months_pl_odm_short[pl_name[0..2]] || @@months_pl_odm_short2[pl_name[0..1]]
    end

    def self.get_en_month_name_from_rom rom_name
        @@months_roman[rom_name]
    end
  
end